<!DOCTYPE html>
<html  lang="en">
<head>
    <meta charset="utf-8">
<title>Category: 网络 - noback</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />



    <meta property="og:type" content="website">
<meta property="og:title" content="noback">
<meta property="og:url" content="http://alpaca-h.gitee.io/categories/blog-back-new/%E7%BD%91%E7%BB%9C/index.html">
<meta property="og:site_name" content="noback">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="http://alpaca-h.gitee.io/images/og_image.png">
<meta property="article:author" content="Alpaca">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://alpaca-h.gitee.io/images/og_image.png">







<link rel="icon" href="/images/favicon.svg">


<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.7.2/css/bulma.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,600|Source+Code+Pro">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@9.12.0/styles/androidstudio.css">


    
    
    
    <style>body>.footer,body>.navbar,body>.section{opacity:0}</style>
    

    
    
    
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lightgallery@1.6.8/dist/css/lightgallery.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/css/justifiedGallery.min.css">
    

    
    

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/outdatedbrowser@1.1.5/outdatedbrowser/outdatedbrowser.min.css">


    
    
    
    

<link rel="stylesheet" href="/css/back-to-top.css">


    
    

    
    
    
    

    
    
<link rel="stylesheet" href="/css/progressbar.css">
<script src="https://cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script>

    
    
    

    
    
    
        <script async="" src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    

    


<link rel="stylesheet" href="/css/style.css">
<meta name="generator" content="Hexo 4.2.0"><link rel="alternate" href="/atom.xml" title="noback" type="application/atom+xml">
</head>
<body class="is-3-column">
    <nav class="navbar navbar-main">
    <div class="container">
        <div class="navbar-brand is-flex-center">
            <a class="navbar-item navbar-logo" href="/">
            
                <img src="/images/logo.svg" alt="noback" height="28">
            
            </a>
        </div>
        <div class="navbar-menu">
            
            <div class="navbar-start">
                
                <a class="navbar-item"
                href="/">Home</a>
                
                <a class="navbar-item"
                href="/archives/">Archives</a>
                
                <a class="navbar-item"
                href="/categories/">Categories</a>
                
                <a class="navbar-item"
                href="/tags/">Tags</a>
                
                <a class="navbar-item"
                href="/about/">About</a>
                
            </div>
            
            <div class="navbar-end">
                
                    
                    
                    <a class="navbar-item" target="_blank" title="AlphaLxy GitHub" href="https://www.github.com/AlphaLxy">
                        
                        <i class="fab fa-github"></i>
                        
                    </a>
                    
                
                
                
                <a class="navbar-item search" title="Search" href="javascript:;">
                    <i class="fas fa-search"></i>
                </a>
                
            </div>
        </div>
    </div>
</nav>
    
    <section class="section">
        <div class="container">
            <div class="columns">
                <div class="column is-8-tablet is-8-desktop is-6-widescreen has-order-2 column-main"><div class="card">
    <div class="card-content">
        <nav class="breadcrumb" aria-label="breadcrumbs">
        <ul>
            <li><a href="/categories">Categories</a></li>
            
            <li><a href="/categories/blog-back-new/">blog_back_new</a></li>
            
            <li class="is-active"><a href="#" aria-current="page">网络</a></li>
        </ul>
        </nav>
    </div>
</div>

    <div class="card">
    
    <div class="card-content article ">
        <h1 class="title is-size-3 is-size-4-mobile has-text-weight-normal">
            
                <a class="has-link-black-ter" href="/2020/01/04/blog_back_new/%E7%BD%91%E7%BB%9C/%E7%BD%91%E7%BB%9C%E9%83%A8%E7%BD%B2%E9%9C%80%E6%B1%82%E5%88%86%E6%9E%90/"><i class="fas fa-angle-double-right"></i>网络部署需求分析</a>
            
        </h1>
        
        <div class="level article-meta is-size-7 is-uppercase is-mobile is-overflow-x-auto">
            <div class="level-left">
                <time class="level-item has-text-grey" datetime="2020-01-04T02:22:09.000Z"><i class="far fa-calendar-alt">&nbsp;</i>2020-01-04</time>
                
                <time class="level-item has-text-grey is-hidden-mobile" datetime="2020-01-07T03:28:19.515Z"><i class="far fa-calendar-check">&nbsp;</i>2020-01-07</time>
                
                
                <div class="level-item">
                <i class="far fa-folder-open has-text-grey"></i>&nbsp;
                <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a>&nbsp;/&nbsp;<a class="has-link-grey -link" href="/categories/blog-back-new/%E7%BD%91%E7%BB%9C/">网络</a>
                </div>
                
                
                <span class="level-item has-text-grey">
                    <i class="far fa-clock"></i>&nbsp;
                    
                    
                    12 minutes read (About 1751 words)
                </span>
                
                
            </div>
        </div>
        
        <div class="content">
            <h1 id="网络部署需求分析"><a href="#网络部署需求分析" class="headerlink" title="网络部署需求分析"></a>网络部署需求分析</h1><p>后面需要根据tower给出的内容对网络环境，机器上架规划内容<br>由于tower中给出的大部分都是纸上信息，这里做几个例子进行一下总结</p>
<p><font color='blue'>凡是没有提到2层或者3层需求的，都按照3层需求来处理</font></p>
<h2 id="自动生成汇聚端口配置"><a href="#自动生成汇聚端口配置" class="headerlink" title="自动生成汇聚端口配置"></a>自动生成汇聚端口配置</h2><pre><code class="py">import os
import json

# 指定端口类型  有些做过堆叠的交换机 MemberID是不同的
port_type = &quot;1&quot;

for i in range(1,16):
    print(&quot;interface bridge-aggregation %s&quot;%i)
    print(&quot;interface GigabitEthernet%s/0/%s&quot;%(port_type,int(i*2-1)))
    print(&quot;port link-aggregation group %s&quot;%i)
    print(&quot;interface GigabitEthernet%s/0/%s&quot;%(port_type,int(i*2)))
    print(&quot;port link-aggregation group %s&quot;%i)


## REANME.md
##交换机的配置需要批量配置管理端口
##用这个脚本生成就ok了</code></pre>
<h2 id="基础配置"><a href="#基础配置" class="headerlink" title="*****基础配置"></a>*****基础配置</h2><p>基础配置 二三层通用</p>
<pre><code class="bash"># 用户配置
local-user admin class manage
 service-type ssh
 authorization-attribute user-role level-3
 authorization-attribute user-role network-admin
 authorization-attribute user-role network-operator
#
local-user root class manage
 service-type ssh
 authorization-attribute user-role level-3
 authorization-attribute user-role network-admin
 authorization-attribute user-role network-operator

user-interface vty 0 4
authentication-mode scheme       
 user-role network-admin
protocol inbound all
quit

# 不显示版本信息
undo copyright-info enable

# 公钥导入
public-key peer pub
  public-key-code begin    
   30820122300D06092A864886F70D01010105000382010F003082010A0282010100D37D67EC
   5A9466CD38895097E74386EBBEFA9EC59236DF5E96D7514B2903C21F09C6D47D74792B5E3D
   C1F99DB4D43614AE3AD61DEFFAF35CED9B94DBD85DE174598C491FA043F8C700DA686BFFCA
   227E4E7417A251CD7590673B4C1A227962F65CBA6017329479484EF8FE48A8E2FED636C846
   5765801A0D62C821906FF8E7188DA69D716FD392E8C0D4D0618E9020670FFA24CF083E2EF7
   690EABCA43AA4341D798A72B6FFB5A0A1BEF0F4B14B6B66E5F7126582BD11A11F4220EA3FF
   C1A5DF36E86E76A8EF6A97949158F094CBAD09725069A090CBA36D95CB6A9531A5AB8B3ED5
   8D6C63C8138320F0F1ECD7B25203A1B79FC82635B0F53475BC428B3B741F0203010001
  public-key-code end
 peer-public-key end


public-key peer upyun
 public-key-code begin
   30820122300D06092A864886F70D01010105000382010F003082010A0282010100BEF4DB4E
   5224F5FFE95AF67CC1753592979F6C1379E0A1FB8519C0E6E626B50F221957806B64384173
   F2B370254381D583D3EC70D4211CC599CF6C1615754E985895D1E78E1E62788A9BC2E4D2EB
   55A18FD20D2B692813114C650FE4FC883DB5467039264C2478332C2C967F3DAE83AFBDFAB3
   D794F38DCB2E112184127A151741947DFBB00E8E66B9037131C54A27DE703B2E80A3D8D3C6
   79CFC9E851D9C76610228790D7E2253D7E7735481D2EA61AA71D6DFD2EAC037203CE08943E
   43DF88AC1ECCB77433358B5ABDF080616D6B6C40AEBEEEDD64D8B8718F091CAA0EA8D5A6A0
   2B6106D931E45717C94DBC0F3FF6608CB609C4DA4860C8C48EE67CB304470203010001
 public-key-code end
 peer-public-key end
# 用户公钥认证
ssh user admin service-type stelnet authentication-type publickey assign publickey pub
ssh user root service-type stelnet authentication-type publickey assign publickey upyun

# acl过滤
acl number 2000
description Login IP Control
rule 1 permit source 192.168.0.0 0.0.255.255
rule 5 permit source 115.238.93.82 0
rule 10 permit source 115.231.100.64 0.0.0.63
rule 15 permit source 121.52.226.192 0.0.0.63
rule 20 permit source 115.238.54.160 0.0.0.15
rule 25 permit source 124.160.114.192 0.0.0.15
rule 30 permit source 106.186.117.158 0.0.0.255
rule 35 permit source 157.119.232.0  0.0.0.31
rule 40 permit source 218.205.64.19 0.0.0.31
rule 45 permit source 112.17.251.0 0.0.0.31
rule 50 permit source 121.52.250.193 0.0.0.31
rule 55 permit source 183.131.0.65 0.0.0.31
rule 60 permit source 43.230.89.160 0.0.0.31
rule 65 permit source 111.1.32.0 0.0.0.127
rule 70 permit source 115.231.97.0 0.0.0.31
rule 1000 deny source any

quit
undo ip http enable

# ssh过滤
ssh server enable
ssh server acl 2000

# 接口过滤
user-interface vty 0 4
acl 2000 inbound

# snmp监控
snmp-agent
snmp-agent local-engineid 800063A203
snmp-agent community read hgE6ofdZ3b
snmp-agent sys-info version v2c v3 

# 机器时间同步
ntp-service unicast-server 218.189.210.4 source Vlan-interface 1
ntp-service unicast-server 137.189.4.10 source Vlan-interface 1
clock timezone beijing add 8

# 路由追踪
ip ttl-expires enable
ip unreachables enable
ipv6 unreachables enable</code></pre>
<h2 id="二层环路检测配置"><a href="#二层环路检测配置" class="headerlink" title="***二层环路检测配置"></a>***二层环路检测配置</h2><p>h3c 5130配置</p>
<pre><code class="bash">loopback-detection global enable vlan all
# 端口定时器
shutdown-interval 120 
# 环路检测报文发送周期
loopback-detection interval-time 5

# 接口内部配置
# 环路检测接口配置
loopback-detection action shutdown
loopback-detection enable vlan all</code></pre>
<p>h3c 5120配置</p>
<pre><code class="bash">loopback-detection multi-port-mode enable
loopback-detection enable
# 端口定时器
shutdown-interval 120 
# 环路检测报文发送周期
loopback-description interval-time 5
# 环路检测接口配置
loopback-detection action shutdown
loopback-detection enable vlan all</code></pre>
<h2 id="走二层与走三层的关系"><a href="#走二层与走三层的关系" class="headerlink" title="走二层与走三层的关系"></a>走二层与走三层的关系</h2><p>交换机的二三层决定取决于OSI模型 ，二层走数据链路层 三层在二层基础上添加网络层<br>另外交换机是否走三层，应该取决于网络的规划</p>
<p><font color='blue'>首先是二层</font><br>交换机走二层，路由在核心交换机上，不转发多网段的数据(Vlan)<br>数据走数据链路层<br>以上说明二层交换机不能跨网段传输信息，在划分vlan的情况下，只能走同vlan下的数据</p>
<p><font color='red'>需要测试</font></p>
<pre><code class="bash"># 在同vlan下，不通网段ip需要默认路由？

# 在同vlan下，同网段ip不需要默认路由？  

# 静态路由的功能除了 规定流量转发还有什么？</code></pre>
<p>静态路由指向核心交换机上的网关</p>
<p><font color='blue'>其次是三层交换机</font><br>三层交换机就是在二层交换机的基础上加了路由功能，交换机走三层，路由在当前三层交换机上<br>三层交换机能转发多网段的数据,路由器转发数据是基于IP地址进行转发的！！而二层交换机是基于MAC地址转发的！！<br>让基于MAC地址转发的交换机实现基于IP地址转发  ===&gt; 三层交换机</p>
<p>三层交换机可以转发多网段的数据，不局限于同vlan下的数据转发，</p>
<p>静态路由指向网关</p>
<p>虽然三层交换机有路由功能，但不能完全取代路由器，基础原理不同</p>
<h3 id="二层架构于三层架构的区别"><a href="#二层架构于三层架构的区别" class="headerlink" title="二层架构于三层架构的区别"></a>二层架构于三层架构的区别</h3><p><a href="https://blog.51cto.com/fenggao/1582958" target="_blank" rel="noopener">https://blog.51cto.com/fenggao/1582958</a><br><a href="https://www.cnblogs.com/sunada2005/articles/2666902.html" target="_blank" rel="noopener">https://www.cnblogs.com/sunada2005/articles/2666902.html</a></p>
<h3 id="举例"><a href="#举例" class="headerlink" title="举例"></a>举例</h3><p>比如你现在有两台交换机 A  B<br>A 作为核心交换机<br>B 作为核心机下面的机器</p>
<p>要走二层的话，则同vlan走个静态就ok了</p>
<p>要走三层的话，也就是说B下面有多个网段的机器 两台机器的vlan是不需要相同的，三层交换机会动态配置</p>
<h2 id="福建厦门联通"><a href="#福建厦门联通" class="headerlink" title="福建厦门联通"></a>福建厦门联通</h2><p>CUN-FJ-XMN-S01<br><img src="http://img.noback.top/2020-01-02-11-23-28.png" alt="2020-01-02-11-23-28"><br>如图以上信息</p>
<pre><code class="bash">ip信息  36.248.208.224/27
机器信息 15台1U服务器  1台5130交换机(52口)  2个万兆多模  30根网线 16根电源线

--&gt;
--&gt;
--&gt;
也就是说 15台服务器每台2根网线  5130交换机前面30个电口做汇聚
interface bridge-aggregation 1
interface GigabitEthernet1/0/1
port link-aggregation group 1
interface GigabitEthernet1/0/2
port link-aggregation group 1
# 可以用脚本生成
两个万兆多模，交换机上联接入一个，上联一个</code></pre>
<h2 id="走二层"><a href="#走二层" class="headerlink" title="****走二层"></a>****走二层</h2><h3 id="不走vlan1-指定vlan-2250"><a href="#不走vlan1-指定vlan-2250" class="headerlink" title="不走vlan1 指定vlan 2250"></a>不走vlan1 指定vlan 2250</h3><pre><code class="bash"># 配置vlan2250
vlan 2250
int vlan-interface 2250
ip address 36.248.208.226 255.255.255.224
# 端口汇聚
interface bridge-aggregation 1
interface GigabitEthernet2/0/1
port link-aggregation group 1
interface GigabitEthernet2/0/2
port link-aggregation group 1
...
int range Bridge-Aggregation 1 to Bridge-Aggregation 15
port access vlan 2250
# 配置上联口
interface ten1/0/49
port link-type trunk # 接入trunk模式，对应trunk模式
undo port trunk permit vlan 1
port trunk permit vlan 2250
# 关闭端口stp生成树功能
int range g1/0/1 to g1/0/30 
undo stp enable

# 二层环路检测配置</code></pre>
<h2 id="四川成都联通"><a href="#四川成都联通" class="headerlink" title="四川成都联通"></a>四川成都联通</h2><p>CMN-SC-CTU4-S01<br><img src="http://img.noback.top/2020-01-02-11-24-20.png" alt="2020-01-02-11-24-20"><br>ZA-16030782    1 2 口<br>ZA-16030781    3 4 口<br>ZA-16031259    5 6 口<br>ZA-16031257    7 8 口<br>ZA-16030285    9 10 口<br>ZA-15041213    11 12 口<br>ZA-15041819    13 14 口<br>ZA-15041852    15 16 口<br>ZA-15070367    17 18 口<br>ZA-19010018    19 20 口</p>
<p>6300   47 48上联口</p>
<pre><code class="bash"># 走三层
10 台交换机 汇聚 走1-20口
 走47 48口 # 这个需要问，图里没给</code></pre>
<h3 id="走三层"><a href="#走三层" class="headerlink" title="*****走三层"></a>*****走三层</h3><pre><code class="bash"># 基础配置 复制粘贴
# 配置vlan 200 201
vlan 200
int vlan-interface 200
ip address 117.172.4.50 255.255.255.252
vlan 201 
int vlan-interface 201
ip address 117.172.4.54 255.255.255.252
vlan 1
int vlan-interface 1
ip address 117.172.22.129 255.255.255.224

# 配置静态路由
ip route-static 0.0.0.0 0 117.172.4.49
ip route-static 0.0.0.0 0 117.172.4.53

# 配置上联
int ten 1/0/47
port access vlan 200
int ten 1/0/49
port access vlan 201

# 二层环路检测配置</code></pre>

        </div>
        
        
        
        
    </div>
</div>









    <div class="card">
    
    <div class="card-content article ">
        <h1 class="title is-size-3 is-size-4-mobile has-text-weight-normal">
            
                <a class="has-link-black-ter" href="/2020/01/03/blog_back_new/%E7%BD%91%E7%BB%9C/%E4%BA%A4%E6%8D%A2%E6%9C%BA%E6%A3%80%E6%B5%8B%E4%BF%A1%E6%81%AF/"><i class="fas fa-angle-double-right"></i>交换机检测命令</a>
            
        </h1>
        
        <div class="level article-meta is-size-7 is-uppercase is-mobile is-overflow-x-auto">
            <div class="level-left">
                <time class="level-item has-text-grey" datetime="2020-01-03T03:14:42.000Z"><i class="far fa-calendar-alt">&nbsp;</i>2020-01-03</time>
                
                <time class="level-item has-text-grey is-hidden-mobile" datetime="2020-01-04T00:30:09.732Z"><i class="far fa-calendar-check">&nbsp;</i>2020-01-04</time>
                
                
                <div class="level-item">
                <i class="far fa-folder-open has-text-grey"></i>&nbsp;
                <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a>&nbsp;/&nbsp;<a class="has-link-grey -link" href="/categories/blog-back-new/%E7%BD%91%E7%BB%9C/">网络</a>
                </div>
                
                
                <span class="level-item has-text-grey">
                    <i class="far fa-clock"></i>&nbsp;
                    
                    
                    7 minutes read (About 1037 words)
                </span>
                
                
            </div>
        </div>
        
        <div class="content">
            <h2 id="交换机日常维护检测命令"><a href="#交换机日常维护检测命令" class="headerlink" title="交换机日常维护检测命令"></a>交换机日常维护检测命令</h2><h2 id="风扇"><a href="#风扇" class="headerlink" title="风扇"></a>风扇</h2><p>查看风扇状态</p>
<pre><code class="bash">system-view 
display fan</code></pre>
<p>损坏状态:</p>
<pre><code class="text">[ONI-KC-I06-A02]display fan
 Slot 1
      FAN    1
      State    : Fault</code></pre>
<p>正常运行状态</p>
<pre><code class="text">[ONI-KC-I05-A01]display fan
 Slot 1
      FAN    1
      State    : Normal</code></pre>
<h2 id="arp表项"><a href="#arp表项" class="headerlink" title="arp表项"></a>arp表项</h2><p>查看arp表项</p>
<pre><code class="bash">system-view
display arp</code></pre>
<p>结果:</p>
<pre><code class="text">  Type: S-Static   D-Dynamic   O-Openflow   R-Rule   M-Multiport  I-Invalid
IP address      MAC address    VID        Interface/Link ID        Aging Type 
10.0.0.62       0080-91b5-ae52 1000       GE1/0/48                 402   D    
10.0.0.130      84d9-317f-57c4 1000       GE1/0/48                 1197  D    
10.0.0.133      70f9-6d0d-e1c3 1000       GE1/0/48                 1078  D    
10.0.0.134      70f9-6d0d-e1c0 1000       GE1/0/48                 611   D    
10.0.0.135      5cdd-707a-2215 1000       GE1/0/48                 1078  D    
10.0.0.136      5cdd-707a-2212 1000       GE1/0/48                 609   D    
10.0.0.137      487a-da9c-21aa 1000       GE1/0/48                 559   D    
10.0.0.138      487a-da9c-20d2 1000       GE1/0/48                 213   D    
10.0.0.150      70f9-6ddc-7719 1000       GE1/0/48                 612   D    
10.0.0.161      5cdd-7008-82d8 1000       GE1/0/48                 864   D    
10.0.0.162      3ce5-a6af-fb39 1000       GE1/0/48                 612   D    
10.0.0.163      70f9-6d4a-d07d 1000       GE1/0/48                 610   D    
10.0.0.164      5cdd-7095-0c41 1000       GE1/0/48                 609   D    
10.0.0.165      7425-8ad9-0d84 1000       GE1/0/48                 611   D    
10.0.0.166      7425-8ad9-0924 1000       GE1/0/48                 611   D    
10.0.0.167      70f9-6d4a-c4ed 1000       GE1/0/48                 610   D    
10.0.0.168      5cdd-70a5-bc53 1000       GE1/0/48                 612   D    
10.0.0.169      50da-00f2-0c06 1000       GE1/0/48                 610   D    
10.0.0.170      845b-125c-381b 1000       GE1/0/48                 1185  D    
10.0.0.171      586a-b106-39f4 1000       GE1/0/48                 1071  D    
10.0.0.173      586a-b106-6994 1000       GE1/0/48                 1071  D</code></pre>
<p>其中包括IP地址 mac地址等</p>
<h2 id="接口信息"><a href="#接口信息" class="headerlink" title="接口信息"></a>接口信息</h2><pre><code class="bash">system-view 
display interface brief </code></pre>
<h2 id="环路检测显示和维护"><a href="#环路检测显示和维护" class="headerlink" title="环路检测显示和维护"></a>环路检测显示和维护</h2><pre><code class="bash">system-view
display loopback-detection</code></pre>
<h2 id="时间显示"><a href="#时间显示" class="headerlink" title="时间显示"></a>时间显示</h2><pre><code class="bash">display clock</code></pre>
<p><strong>修改时间</strong><br>1.获取NTP,由网络时钟服务器获取时间<br>clock protocol ntp mdc [mdc-ip]<br>2.不设置时钟服务器<br>clock protoco none</p>
<pre><code class="bash">&lt;H3C&gt;clock protocol none　　　　　　　　　　　　　　#关闭protocol ,缺省情况下，默认开启，由缺省MDC获取系统时间

&lt;H3C&gt;clock datetime hh:mm:ss year/month/day　　　　 #设置时间

[H3C]clock timezone beijing add 8　　　　　　　　　　#设置时区 北京 在UTC偏移8小时

[H3C]quit</code></pre>
<h2 id="显示Switch-A上全局和所有接口的LLDP状态信息。"><a href="#显示Switch-A上全局和所有接口的LLDP状态信息。" class="headerlink" title="显示Switch A上全局和所有接口的LLDP状态信息。"></a>显示Switch A上全局和所有接口的LLDP状态信息。</h2><pre><code class="bash">[SwitchA] display lldp status</code></pre>
<p>结果:</p>
<pre><code class="bash">LLDP status information of port 1 [Ten-GigabitEthernet1/0/1]:
LLDP agent nearest-bridge:
Port status of LLDP            : Enable
Admin status                   : RX_Only
Trap flag                      : No
MED trap flag                  : No
Polling interval               : 0s
Number of LLDP neighbors       : 1
Number of MED neighbors        : 1
Number of CDP neighbors        : 0
Number of sent optional TLV    : 21
Number of received unknown TLV : 0</code></pre>
<h2 id="FIB表的信息-ip转发信息表"><a href="#FIB表的信息-ip转发信息表" class="headerlink" title="FIB表的信息(ip转发信息表)"></a>FIB表的信息(ip转发信息表)</h2><pre><code class="bash">[hzj_test]display fib </code></pre>
<p>结果：</p>
<pre><code class="bash">[hzj_test]display  fib 

Destination count: 17 FIB entry count: 17

Flag:
  U:Useable   G:Gateway   H:Host   B:Blackhole   D:Dynamic   S:Static
  R:Relay     F:FRR 

Destination/Mask   Nexthop         Flag     OutInterface/Token       Label
0.0.0.0/32         127.0.0.1       UH       InLoop0                  Null       
10.0.0.0/20        10.0.5.124      U        Vlan1000                 Null       
10.0.0.0/32        10.0.5.124      UBH      Vlan1000                 Null       
10.0.1.19/32       10.0.1.19       UH       Vlan1000                 Null       
10.0.1.54/32       10.0.1.54       UH       Vlan1000                 Null       
10.0.1.70/32       10.0.1.70       UH       Vlan1000                 Null       
10.0.1.71/32       10.0.1.71       UH       Vlan1000                 Null       
10.0.2.56/32       10.0.2.56       UH       Vlan1000                 Null       
10.0.5.124/32      127.0.0.1       UH       InLoop0                  Null       
10.0.15.255/32     10.0.5.124      UBH      Vlan1000                 Null       
127.0.0.0/8        127.0.0.1       U        InLoop0                  Null       
127.0.0.0/32       127.0.0.1       UH       InLoop0                  Null       
127.0.0.1/32       127.0.0.1       UH       InLoop0                  Null       
127.255.255.255/32 127.0.0.1       UH       InLoop0                  Null       
224.0.0.0/4        0.0.0.0         UB       NULL0                    Null       
224.0.0.0/24       0.0.0.0         UB       NULL0                    Null       
255.255.255.255/32 127.0.0.1       UH       InLoop0                  Null    </code></pre>
<p>FIB表中包含了下列关键项：</p>
<ul>
<li>Destination：目的地址。用来标识IP报文的目的地址或目的网络。</li>
<li>Mask：网络掩码。与目的地址一起来标识目的主机或交换机所在的网段的地址。将目的地址和网络掩码“逻辑与”后可得到目的主机或交换机所在网段的地址。例如：目的地址为192.168.1.40、掩码为255.255.255.0的主机或交换机所在网段的地址为192.168.1.0。掩码由若干个连续“1”构成，既可以用点分十进制法表示，也可以用掩码中连续“1”的个数来表示。</li>
<li>NextHop：转发的下一跳地址。</li>
<li>Flag：路由的标志。</li>
<li>OutInterface：转发接口。指明IP报文将从哪个接口转发。</li>
<li>Token：LSP（Label Switched Path，标签交换路径）索引号。</li>
<li>Label：内层标签值</li>
</ul>
<h2 id="风扇-1"><a href="#风扇-1" class="headerlink" title="风扇"></a>风扇</h2><p>查看风扇状态</p>
<pre><code class="bash">system-view 
display fan</code></pre>
<p>损坏状态:</p>
<pre><code class="text">[ONI-KC-I06-A02]display fan
 Slot 1
      FAN    1
      State    : Fault</code></pre>
<p>正常运行状态</p>
<pre><code class="text">[ONI-KC-I05-A01]display fan
 Slot 1
      FAN    1
      State    : Normal</code></pre>
<h2 id="arp表项-1"><a href="#arp表项-1" class="headerlink" title="arp表项"></a>arp表项</h2><p>查看arp表项</p>
<pre><code class="bash">system-view
display arp</code></pre>
<p>结果:</p>
<pre><code class="text">  Type: S-Static   D-Dynamic   O-Openflow   R-Rule   M-Multiport  I-Invalid
IP address      MAC address    VID        Interface/Link ID        Aging Type 
10.0.0.62       0080-91b5-ae52 1000       GE1/0/48                 402   D    
10.0.0.130      84d9-317f-57c4 1000       GE1/0/48                 1197  D    
10.0.0.133      70f9-6d0d-e1c3 1000       GE1/0/48                 1078  D    
10.0.0.134      70f9-6d0d-e1c0 1000       GE1/0/48                 611   D    
10.0.0.135      5cdd-707a-2215 1000       GE1/0/48                 1078  D    
10.0.0.136      5cdd-707a-2212 1000       GE1/0/48                 609   D    
10.0.0.137      487a-da9c-21aa 1000       GE1/0/48                 559   D    
10.0.0.138      487a-da9c-20d2 1000       GE1/0/48                 213   D    
10.0.0.150      70f9-6ddc-7719 1000       GE1/0/48                 612   D    
10.0.0.161      5cdd-7008-82d8 1000       GE1/0/48                 864   D    
10.0.0.162      3ce5-a6af-fb39 1000       GE1/0/48                 612   D    
10.0.0.163      70f9-6d4a-d07d 1000       GE1/0/48                 610   D    
10.0.0.164      5cdd-7095-0c41 1000       GE1/0/48                 609   D    
10.0.0.165      7425-8ad9-0d84 1000       GE1/0/48                 611   D    
10.0.0.166      7425-8ad9-0924 1000       GE1/0/48                 611   D    
10.0.0.167      70f9-6d4a-c4ed 1000       GE1/0/48                 610   D    
10.0.0.168      5cdd-70a5-bc53 1000       GE1/0/48                 612   D    
10.0.0.169      50da-00f2-0c06 1000       GE1/0/48                 610   D    
10.0.0.170      845b-125c-381b 1000       GE1/0/48                 1185  D    
10.0.0.171      586a-b106-39f4 1000       GE1/0/48                 1071  D    
10.0.0.173      586a-b106-6994 1000       GE1/0/48                 1071  D</code></pre>
<p>其中包括IP地址 mac地址等</p>
<h2 id="接口信息-1"><a href="#接口信息-1" class="headerlink" title="接口信息"></a>接口信息</h2><pre><code class="bash">system-view 
display interface brief </code></pre>
<h2 id="环路检测显示和维护-1"><a href="#环路检测显示和维护-1" class="headerlink" title="环路检测显示和维护"></a>环路检测显示和维护</h2><pre><code class="bash">system-view
display loopback-detection</code></pre>
<h2 id="确认arp表数量"><a href="#确认arp表数量" class="headerlink" title="确认arp表数量"></a>确认arp表数量</h2><pre><code class="bash">display arp all </code></pre>
<p>cnblogs.com/dpwindy/p/9104330.html</p>

        </div>
        
        
        
        
    </div>
</div>









    <div class="card">
    
    <div class="card-content article ">
        <h1 class="title is-size-3 is-size-4-mobile has-text-weight-normal">
            
                <a class="has-link-black-ter" href="/2020/01/03/blog_back_new/%E7%BD%91%E7%BB%9C/%E4%BA%A4%E6%8D%A2%E6%9C%BA%E5%85%89%E6%A8%A1%E5%9D%97%E6%A3%80%E6%B5%8B/"><i class="fas fa-angle-double-right"></i>交换机光模块维护检测</a>
            
        </h1>
        
        <div class="level article-meta is-size-7 is-uppercase is-mobile is-overflow-x-auto">
            <div class="level-left">
                <time class="level-item has-text-grey" datetime="2020-01-03T02:41:44.000Z"><i class="far fa-calendar-alt">&nbsp;</i>2020-01-03</time>
                
                <time class="level-item has-text-grey is-hidden-mobile" datetime="2020-01-04T00:30:09.732Z"><i class="far fa-calendar-check">&nbsp;</i>2020-01-04</time>
                
                
                <div class="level-item">
                <i class="far fa-folder-open has-text-grey"></i>&nbsp;
                <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a>&nbsp;/&nbsp;<a class="has-link-grey -link" href="/categories/blog-back-new/%E7%BD%91%E7%BB%9C/">网络</a>
                </div>
                
                
                <span class="level-item has-text-grey">
                    <i class="far fa-clock"></i>&nbsp;
                    
                    
                    2 minutes read (About 373 words)
                </span>
                
                
            </div>
        </div>
        
        <div class="content">
            <h2 id="H3c光模块相关命令和检测方式"><a href="#H3c光模块相关命令和检测方式" class="headerlink" title="H3c光模块相关命令和检测方式"></a>H3c光模块相关命令和检测方式</h2><p>几个光模块检测命令</p>
<pre><code class="bash"># 显示光模块的部分电子标签信息
display transceiver manuinfo interface GigabitEthernet 1/0/50
&lt;FRR_TEST_6800-54QF&gt;display transceiver interface Ten-GigabitEthernet 1/0/47
Ten-GigabitEthernet1/0/47 transceiver information:
  Transceiver Type              : 10G_BASE_SR_SFP        # 设备型号
  Connector Type                : No Separable Connector # 连接
  Wavelength(nm)                : 850      # 显示发送激光中心波长
  Transfer Distance(m)          : 5(No Separable Connector) # 传输距离
  Digital Diagnostic Monitoring : YES # 是否支持数字诊断功能
  Vendor Name                   : Gigalight # 定制厂商名称 即 H3c
  Vendor Part Number            : GSS-MDO100-005C # 对外型号

# 显示可插拔模块的主要特征参数
display transceiver interface GigabitEthernet 1/0/50 
# 显示光模块数字诊断参数的当前测量值
display transceiver Diagnostic interface GigabitEthernet 1/0/50
# 信息可见一下，其中 
# channel 表示四个发光口的数据
# module 表示模块状态
# alarm 表示基本校验信息</code></pre>
<ul>
<li>RX power表示收光信息</li>
<li>Tx power表示发光信息</li>
<li>Basic 偏置电流</li>
<li>Voltage 电压</li>
<li>temp 温度</li>
<li>Alarm thresholds 表示报警阀值</li>
</ul>
<h2 id="交换机光模块维护检测"><a href="#交换机光模块维护检测" class="headerlink" title="交换机光模块维护检测"></a>交换机光模块维护检测</h2><p><font color='blue'>已知 49口40G模块疑似坏掉，检测规则</font></p>
<p>40 —–  50 口互相连接<br><img src="http://img.noback.top/2020-01-03-10-30-39.png" alt="2020-01-03-10-30-39"><br>无收光时 40G模块  50口<br><img src="http://img.noback.top/2020-01-03-10-31-37.png" alt="2020-01-03-10-31-37"><br>有收光时，40G模块  50口</p>
<p><img src="http://img.noback.top/2020-01-03-10-32-50.png" alt="2020-01-03-10-32-50"><br>无收光时， 40G模块  49口<br><img src="http://img.noback.top/2020-01-03-10-33-26.png" alt="2020-01-03-10-33-26"><br>有收光时， 40G模块  49口</p>
<p><font color='blue'>以上会发现40口模块虽然收发光正常，但是在50口收光处只收到了2束光，说明在40G处发光有问题</font></p>
<p>坏模块SN号<br><img src="http://img.noback.top/2020-01-03-10-48-35.png" alt="2020-01-03-10-48-35"></p>

        </div>
        
        
        
        
    </div>
</div>









</div>
                




<div class="column is-4-tablet is-4-desktop is-3-widescreen  has-order-1 column-left ">
    
        
<div class="card widget">
    <div class="card-content">
        <nav class="level" style="margin-bottom:1rem">
            <div class="level-item has-text-centered">
                <div>
                    
                        <img class="image is-96x96 has-mb-6" src="https://www.gravatar.com/avatar/e0f4032c0f2d1068ffffbaf93c0bef52?s=96" alt="Xinyu Liu">
                    
                    
                    <p class="is-size-4 is-block">
                        Xinyu Liu
                    </p>
                    
                    
                    <p class="is-size-6 is-block">
                        Alpha Lxy
                    </p>
                    
                    
                    <p class="is-size-6 is-flex is-flex-center has-text-grey">
                        <i class="fas fa-map-marker-alt has-mr-7"></i>
                        <span>Beijing, China</span>
                    </p>
                    
                </div>
            </div>
        </nav>
        <nav class="level menu-list is-mobile" style="margin-bottom:1rem">
            <div class="level-item has-text-centered is-marginless">
                <a href="/archives/">
                    <p class="heading">
                        Posts
                    </p>
                    <p class="title has-text-weight-normal">
                        40
                    </p>
                </a>
            </div>
            <div class="level-item has-text-centered is-marginless">
                <a href="/categories/">
                    <p class="heading">
                        Categories
                    </p>
                    <p class="title has-text-weight-normal">
                        13
                    </p>
                </a>
            </div>
            <div class="level-item has-text-centered is-marginless">
                <a href="/tags/">
                    <p class="heading">
                        Tags
                    </p>
                    <p class="title has-text-weight-normal">
                        0
                    </p>
                </a>
            </div>
        </nav>
        <div class="level">
            <a class="level-item button is-link is-rounded" href="https://www.github.com/AlphaLxy" target="_blank">
                <i class="fab fa-github"></i>&nbsp;&nbsp;Follow</a>
        </div>
        
        
    </div>
</div>

    
        

    
        


    
        

    
        <div class="card widget is-hidden-mobile">
    <div class="card-content">
        <div class="menu">
        <h3 class="menu-label">
            Archives
        </h3>
        <ul class="menu-list">
        
        <li>
            <a class="level is-marginless" href="/archives/2020/01/">
                <span class="level-start">
                    <span class="level-item">January 2020</span>
                </span>
                <span class="level-end">
                    <span class="level-item tag">8</span>
                </span>
            </a>
        </li>
        
        <li>
            <a class="level is-marginless" href="/archives/2019/12/">
                <span class="level-start">
                    <span class="level-item">December 2019</span>
                </span>
                <span class="level-end">
                    <span class="level-item tag">32</span>
                </span>
            </a>
        </li>
        
        </ul>
        </div>
    </div>
</div>

    
    
        <div class="column-right-shadow is-hidden-widescreen ">
        
            
<div class="card widget">
    <div class="card-content">
        <h3 class="menu-label">
            Recent
        </h3>
        
        <article class="media">
            
            <a href="/2020/01/05/blog_back_new/linux/keepalive+lvs%E5%9B%9B%E5%B1%82%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1/" class="media-left">
                <p class="image is-64x64">
                    <img class="thumbnail" src="/images/thumbnail.svg" alt="keepalive+lvs 四层负载均衡">
                </p>
            </a>
            
            <div class="media-content">
                <div class="content">
                    <div><time class="has-text-grey is-size-7 is-uppercase" datetime="2020-01-05T05:06:09.000Z">2020-01-05</time></div>
                    <a href="/2020/01/05/blog_back_new/linux/keepalive+lvs%E5%9B%9B%E5%B1%82%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1/" class="has-link-black-ter is-size-6">keepalive+lvs 四层负载均衡</a>
                    <p class="is-size-7 is-uppercase">
                        <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a> / <a class="has-link-grey -link" href="/categories/blog-back-new/linux/">linux</a>
                    </p>
                </div>
            </div>
        </article>
        
        <article class="media">
            
            <a href="/2020/01/05/blog_back_new/linux/linux%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86/iptables%E3%80%81firewall%E9%98%B2%E7%81%AB%E5%A2%99/" class="media-left">
                <p class="image is-64x64">
                    <img class="thumbnail" src="/images/thumbnail.svg" alt="iptables、firewall 防火墙">
                </p>
            </a>
            
            <div class="media-content">
                <div class="content">
                    <div><time class="has-text-grey is-size-7 is-uppercase" datetime="2020-01-05T04:03:16.000Z">2020-01-05</time></div>
                    <a href="/2020/01/05/blog_back_new/linux/linux%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86/iptables%E3%80%81firewall%E9%98%B2%E7%81%AB%E5%A2%99/" class="has-link-black-ter is-size-6">iptables、firewall 防火墙</a>
                    <p class="is-size-7 is-uppercase">
                        <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a> / <a class="has-link-grey -link" href="/categories/blog-back-new/linux/">linux</a>
                    </p>
                </div>
            </div>
        </article>
        
        <article class="media">
            
            <a href="/2020/01/05/blog_back_new/linux/linux%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86/netstat/" class="media-left">
                <p class="image is-64x64">
                    <img class="thumbnail" src="/images/thumbnail.svg" alt="netstat">
                </p>
            </a>
            
            <div class="media-content">
                <div class="content">
                    <div><time class="has-text-grey is-size-7 is-uppercase" datetime="2020-01-05T03:51:48.000Z">2020-01-05</time></div>
                    <a href="/2020/01/05/blog_back_new/linux/linux%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86/netstat/" class="has-link-black-ter is-size-6">netstat</a>
                    <p class="is-size-7 is-uppercase">
                        <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a> / <a class="has-link-grey -link" href="/categories/blog-back-new/linux/">linux</a>
                    </p>
                </div>
            </div>
        </article>
        
        <article class="media">
            
            <a href="/2020/01/04/blog_back_new/%E7%BD%91%E7%BB%9C/%E7%BD%91%E7%BB%9C%E9%83%A8%E7%BD%B2%E9%9C%80%E6%B1%82%E5%88%86%E6%9E%90/" class="media-left">
                <p class="image is-64x64">
                    <img class="thumbnail" src="/images/thumbnail.svg" alt="网络部署需求分析">
                </p>
            </a>
            
            <div class="media-content">
                <div class="content">
                    <div><time class="has-text-grey is-size-7 is-uppercase" datetime="2020-01-04T02:22:09.000Z">2020-01-04</time></div>
                    <a href="/2020/01/04/blog_back_new/%E7%BD%91%E7%BB%9C/%E7%BD%91%E7%BB%9C%E9%83%A8%E7%BD%B2%E9%9C%80%E6%B1%82%E5%88%86%E6%9E%90/" class="has-link-black-ter is-size-6">网络部署需求分析</a>
                    <p class="is-size-7 is-uppercase">
                        <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a> / <a class="has-link-grey -link" href="/categories/blog-back-new/%E7%BD%91%E7%BB%9C/">网络</a>
                    </p>
                </div>
            </div>
        </article>
        
        <article class="media">
            
            <a href="/2020/01/03/blog_back_new/linux/httpd%E6%9C%8D%E5%8A%A1/" class="media-left">
                <p class="image is-64x64">
                    <img class="thumbnail" src="/images/thumbnail.svg" alt="httpd服务">
                </p>
            </a>
            
            <div class="media-content">
                <div class="content">
                    <div><time class="has-text-grey is-size-7 is-uppercase" datetime="2020-01-03T09:18:50.000Z">2020-01-03</time></div>
                    <a href="/2020/01/03/blog_back_new/linux/httpd%E6%9C%8D%E5%8A%A1/" class="has-link-black-ter is-size-6">httpd服务</a>
                    <p class="is-size-7 is-uppercase">
                        <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a> / <a class="has-link-grey -link" href="/categories/blog-back-new/linux/">linux</a>
                    </p>
                </div>
            </div>
        </article>
        
    </div>
</div>

        
            
<div class="card widget">
    <div class="card-content">
        <div class="menu">
            <h3 class="menu-label">
                Categories
            </h3>
            <ul class="menu-list">
            <li>
        <a class="level is-marginless" href="/categories/blog-back-new/">
            <span class="level-start">
                <span class="level-item">blog_back_new</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">39</span>
            </span>
        </a><ul><li>
        <a class="level is-marginless" href="/categories/blog-back-new/C%E8%AF%AD%E8%A8%80/">
            <span class="level-start">
                <span class="level-item">C语言</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">1</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/Python/">
            <span class="level-start">
                <span class="level-item">Python</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">4</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/Rust/">
            <span class="level-start">
                <span class="level-item">Rust</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">5</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/ansible/">
            <span class="level-start">
                <span class="level-item">ansible</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">2</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/django/">
            <span class="level-start">
                <span class="level-item">django</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">8</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/git/">
            <span class="level-start">
                <span class="level-item">git</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">1</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/linux/">
            <span class="level-start">
                <span class="level-item">linux</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">4</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/mysql/">
            <span class="level-start">
                <span class="level-item">mysql</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">1</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/%E6%89%A9%E5%B1%95/">
            <span class="level-start">
                <span class="level-item">扩展</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">3</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/">
            <span class="level-start">
                <span class="level-item">数据结构</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">1</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/%E7%BD%91%E7%BB%9C/">
            <span class="level-start">
                <span class="level-item">网络</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">3</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/%E8%AE%BE%E5%A4%87/">
            <span class="level-start">
                <span class="level-item">设备</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">6</span>
            </span>
        </a></li></ul></li>
            </ul>
        </div>
    </div>
</div>
        
        </div>
    
</div>

                




<div class="column is-4-tablet is-4-desktop is-3-widescreen is-hidden-touch is-hidden-desktop-only has-order-3 column-right ">
    
        
<div class="card widget">
    <div class="card-content">
        <h3 class="menu-label">
            Recent
        </h3>
        
        <article class="media">
            
            <a href="/2020/01/05/blog_back_new/linux/keepalive+lvs%E5%9B%9B%E5%B1%82%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1/" class="media-left">
                <p class="image is-64x64">
                    <img class="thumbnail" src="/images/thumbnail.svg" alt="keepalive+lvs 四层负载均衡">
                </p>
            </a>
            
            <div class="media-content">
                <div class="content">
                    <div><time class="has-text-grey is-size-7 is-uppercase" datetime="2020-01-05T05:06:09.000Z">2020-01-05</time></div>
                    <a href="/2020/01/05/blog_back_new/linux/keepalive+lvs%E5%9B%9B%E5%B1%82%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1/" class="has-link-black-ter is-size-6">keepalive+lvs 四层负载均衡</a>
                    <p class="is-size-7 is-uppercase">
                        <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a> / <a class="has-link-grey -link" href="/categories/blog-back-new/linux/">linux</a>
                    </p>
                </div>
            </div>
        </article>
        
        <article class="media">
            
            <a href="/2020/01/05/blog_back_new/linux/linux%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86/iptables%E3%80%81firewall%E9%98%B2%E7%81%AB%E5%A2%99/" class="media-left">
                <p class="image is-64x64">
                    <img class="thumbnail" src="/images/thumbnail.svg" alt="iptables、firewall 防火墙">
                </p>
            </a>
            
            <div class="media-content">
                <div class="content">
                    <div><time class="has-text-grey is-size-7 is-uppercase" datetime="2020-01-05T04:03:16.000Z">2020-01-05</time></div>
                    <a href="/2020/01/05/blog_back_new/linux/linux%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86/iptables%E3%80%81firewall%E9%98%B2%E7%81%AB%E5%A2%99/" class="has-link-black-ter is-size-6">iptables、firewall 防火墙</a>
                    <p class="is-size-7 is-uppercase">
                        <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a> / <a class="has-link-grey -link" href="/categories/blog-back-new/linux/">linux</a>
                    </p>
                </div>
            </div>
        </article>
        
        <article class="media">
            
            <a href="/2020/01/05/blog_back_new/linux/linux%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86/netstat/" class="media-left">
                <p class="image is-64x64">
                    <img class="thumbnail" src="/images/thumbnail.svg" alt="netstat">
                </p>
            </a>
            
            <div class="media-content">
                <div class="content">
                    <div><time class="has-text-grey is-size-7 is-uppercase" datetime="2020-01-05T03:51:48.000Z">2020-01-05</time></div>
                    <a href="/2020/01/05/blog_back_new/linux/linux%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86/netstat/" class="has-link-black-ter is-size-6">netstat</a>
                    <p class="is-size-7 is-uppercase">
                        <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a> / <a class="has-link-grey -link" href="/categories/blog-back-new/linux/">linux</a>
                    </p>
                </div>
            </div>
        </article>
        
        <article class="media">
            
            <a href="/2020/01/04/blog_back_new/%E7%BD%91%E7%BB%9C/%E7%BD%91%E7%BB%9C%E9%83%A8%E7%BD%B2%E9%9C%80%E6%B1%82%E5%88%86%E6%9E%90/" class="media-left">
                <p class="image is-64x64">
                    <img class="thumbnail" src="/images/thumbnail.svg" alt="网络部署需求分析">
                </p>
            </a>
            
            <div class="media-content">
                <div class="content">
                    <div><time class="has-text-grey is-size-7 is-uppercase" datetime="2020-01-04T02:22:09.000Z">2020-01-04</time></div>
                    <a href="/2020/01/04/blog_back_new/%E7%BD%91%E7%BB%9C/%E7%BD%91%E7%BB%9C%E9%83%A8%E7%BD%B2%E9%9C%80%E6%B1%82%E5%88%86%E6%9E%90/" class="has-link-black-ter is-size-6">网络部署需求分析</a>
                    <p class="is-size-7 is-uppercase">
                        <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a> / <a class="has-link-grey -link" href="/categories/blog-back-new/%E7%BD%91%E7%BB%9C/">网络</a>
                    </p>
                </div>
            </div>
        </article>
        
        <article class="media">
            
            <a href="/2020/01/03/blog_back_new/linux/httpd%E6%9C%8D%E5%8A%A1/" class="media-left">
                <p class="image is-64x64">
                    <img class="thumbnail" src="/images/thumbnail.svg" alt="httpd服务">
                </p>
            </a>
            
            <div class="media-content">
                <div class="content">
                    <div><time class="has-text-grey is-size-7 is-uppercase" datetime="2020-01-03T09:18:50.000Z">2020-01-03</time></div>
                    <a href="/2020/01/03/blog_back_new/linux/httpd%E6%9C%8D%E5%8A%A1/" class="has-link-black-ter is-size-6">httpd服务</a>
                    <p class="is-size-7 is-uppercase">
                        <a class="has-link-grey -link" href="/categories/blog-back-new/">blog_back_new</a> / <a class="has-link-grey -link" href="/categories/blog-back-new/linux/">linux</a>
                    </p>
                </div>
            </div>
        </article>
        
    </div>
</div>

    
        
<div class="card widget">
    <div class="card-content">
        <div class="menu">
            <h3 class="menu-label">
                Categories
            </h3>
            <ul class="menu-list">
            <li>
        <a class="level is-marginless" href="/categories/blog-back-new/">
            <span class="level-start">
                <span class="level-item">blog_back_new</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">39</span>
            </span>
        </a><ul><li>
        <a class="level is-marginless" href="/categories/blog-back-new/C%E8%AF%AD%E8%A8%80/">
            <span class="level-start">
                <span class="level-item">C语言</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">1</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/Python/">
            <span class="level-start">
                <span class="level-item">Python</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">4</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/Rust/">
            <span class="level-start">
                <span class="level-item">Rust</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">5</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/ansible/">
            <span class="level-start">
                <span class="level-item">ansible</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">2</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/django/">
            <span class="level-start">
                <span class="level-item">django</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">8</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/git/">
            <span class="level-start">
                <span class="level-item">git</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">1</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/linux/">
            <span class="level-start">
                <span class="level-item">linux</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">4</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/mysql/">
            <span class="level-start">
                <span class="level-item">mysql</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">1</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/%E6%89%A9%E5%B1%95/">
            <span class="level-start">
                <span class="level-item">扩展</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">3</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/">
            <span class="level-start">
                <span class="level-item">数据结构</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">1</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/%E7%BD%91%E7%BB%9C/">
            <span class="level-start">
                <span class="level-item">网络</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">3</span>
            </span>
        </a></li><li>
        <a class="level is-marginless" href="/categories/blog-back-new/%E8%AE%BE%E5%A4%87/">
            <span class="level-start">
                <span class="level-item">设备</span>
            </span>
            <span class="level-end">
                <span class="level-item tag">6</span>
            </span>
        </a></li></ul></li>
            </ul>
        </div>
    </div>
</div>
    
    
</div>

            </div>
        </div>
    </section>
    <footer class="footer">
    <div class="container">
        <div class="level">
            <div class="level-start has-text-centered-mobile">
                <a class="footer-logo is-block has-mb-6" href="/">
                
                    <img src="/images/logo.svg" alt="noback" height="28">
                
                </a>
                <p class="is-size-7">
                &copy; 2020 Alpaca&nbsp;
                Powered by <a href="http://hexo.io/" target="_blank">Hexo</a> & <a
                        href="http://github.com/ppoffice/hexo-theme-icarus" target="_blank">Icarus</a>
                
                <br>
                <span id="busuanzi_container_site_uv">
                Visited by <span id="busuanzi_value_site_uv">0</span> users
                </span>
                
                </p>
            </div>
            <div class="level-end">
            
                <div class="field has-addons is-flex-center-mobile has-mt-5-mobile is-flex-wrap is-flex-middle">
                
                
                <p class="control">
                    <a class="button is-white is-large" target="_blank" title="CC BY-NC-SA 4.0" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
                        
                        <i class="fab fa-creative-commons"></i>&nbsp;<i class="fab fa-creative-commons-by"></i>&nbsp;<i class="fab fa-creative-commons-nc"></i>&nbsp;<i class="fab fa-creative-commons-sa"></i>&nbsp;
                        
                    </a>
                </p>
                
                <p class="control">
                    <a class="button is-white is-large" target="_blank" title="AlphaLxy GitHub" href="https://www.github.com/AlphaLxy">
                        
                        <i class="fab fa-github"></i>&nbsp;
                        
                    </a>
                </p>
                
                </div>
            
            </div>
        </div>
    </div>
</footer>

    <script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/moment@2.22.2/min/moment-with-locales.min.js"></script>
<script>moment.locale("en");</script>


    
    
    
    <script src="/js/animation.js"></script>
    

    
    
    
    <script src="https://cdn.jsdelivr.net/npm/lightgallery@1.6.8/dist/js/lightgallery.min.js" defer></script>
    <script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js" defer></script>
    <script src="/js/gallery.js" defer></script>
    

    
    

<div id="outdated">
    <h6>Your browser is out-of-date!</h6>
    <p>Update your browser to view this website correctly. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/" target="_blank" rel="noopener">Update
            my browser now </a></p>
    <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
</div>
<script src="https://cdn.jsdelivr.net/npm/outdatedbrowser@1.1.5/outdatedbrowser/outdatedbrowser.min.js" defer></script>
<script>
    document.addEventListener("DOMContentLoaded", function () {
        outdatedBrowser({
            bgColor: '#f25648',
            color: '#ffffff',
            lowerThan: 'flex'
        });
    });
</script>


    
    
<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.5/unpacked/MathJax.js?config=TeX-MML-AM_CHTML" defer></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
    MathJax.Hub.Config({
        'HTML-CSS': {
            matchFontHeight: false
        },
        SVG: {
            matchFontHeight: false
        },
        CommonHTML: {
            matchFontHeight: false
        },
        tex2jax: {
            inlineMath: [
                ['$','$'],
                ['\\(','\\)']
            ]
        }
    });
});
</script>

    
    

<a id="back-to-top" title="Back to Top" href="javascript:;">
    <i class="fas fa-chevron-up"></i>
</a>
<script src="/js/back-to-top.js" defer></script>


    
    

    
    
    
    

    
    
    
    
    
    <script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.4/dist/clipboard.min.js" defer></script>
    <script src="/js/clipboard.js" defer></script>
    

    
    
    

    


<script src="/js/main.js" defer></script>

    
    <div class="searchbox ins-search">
    <div class="searchbox-container ins-search-container">
        <div class="searchbox-input-wrapper">
            <input type="text" class="searchbox-input ins-search-input" placeholder="Type something..." />
            <span class="searchbox-close ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
        </div>
        <div class="searchbox-result-wrapper ins-section-wrapper">
            <div class="ins-section-container"></div>
        </div>
    </div>
</div>
<script>
    (function (window) {
        var INSIGHT_CONFIG = {
            TRANSLATION: {
                POSTS: 'Posts',
                PAGES: 'Pages',
                CATEGORIES: 'Categories',
                TAGS: 'Tags',
                UNTITLED: '(Untitled)',
            },
            CONTENT_URL: '/content.json',
        };
        window.INSIGHT_CONFIG = INSIGHT_CONFIG;
    })(window);
</script>
<script src="/js/insight.js" defer></script>
<link rel="stylesheet" href="/css/search.css">
<link rel="stylesheet" href="/css/insight.css">
    
</body>
</html>